import { FormSchema, BasicColumn } from "/@/components/Table"
import { DescItem } from "/@/components/Description/index"
import { render } from "/@/utils/common/renderUtils"

export const columns: BasicColumn[] = [
  {
    title: "标签名称",
    dataIndex: "name",
    width: 100,
  },
  {
    title: "粉丝数",
    dataIndex: "count",
    width: 100,
  },
  {
    title: "备注",
    dataIndex: "remark",
    width: 150,
  },
  {
    title: "创建时间",
    dataIndex: "createdAt",
    width: 160,
  },
  {
    title: "创建者",
    dataIndex: "createdBy",
    width: 120,
  },
]

export const searchFormSchema: FormSchema[] = [
  {
    field: "name",
    label: "名称",
    component: "Input",
    colProps: { span: 6 },
  },
]

export const formSchema: FormSchema[] = [
  {
    field: "id",
    label: "",
    component: "Input",
    show: false,
  },
  {
    field: "name",
    label: "名称",
    required: true,
    component: "Input",
  },

  {
    label: "备注",
    field: "remark",
    component: "InputTextArea",
    componentProps: {
      placeholder: "请输入备注",
      rows: 5,
    },
  },
]
